<?
session_start();
require_once '../Negocio/CsRol.php';
if ($_POST['salir']=="Salir") { 
    header("Location: ../cerrar_Session.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>..:: Soporte T&eacute;cnico ::.. </title>

<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table  width="1000" height="120" border="0" align="center">
  <tr>
    <th colspan="2" scope="col" background="../imagenes/logo-new.jpg" width="995" height="180" valign="top">
<!--        <div valign="top">&nbsp;&nbsp;<img src="../imagenes/logo-new.jpg" width="990" height="130"/></div>-->
    </th>
  </tr>
  <tr>
    <th width="150" height="100" valign="top" bgcolor="	#696969">
        <form name="cerrar_session" method="post" acction="">
        <input type="submit" name="salir" class="enlace" value="Salir"></input>
        </form>
    <div id="menuvertical">
        <ul>
        <?
        $rol = new CsRol();
        $rol->dato[0] = $_SESSION['rl'];
        $cargam = $rol->MenuxRol();
        while ($menu = mysql_fetch_array($cargam)){ ?>
            <li class="nivel1 primera"><a href="principal.php?pg=<? echo $menu[2];?>" class="nivel1"><? echo $menu[1];?></a><?
            $rol->dato[1] = $menu[0];
            $cargas = $rol->SubmenuxRol();
            if($cargas != NULL){?>
                <ul> <?
                while ($sub = mysql_fetch_array($cargas)){?>
                    <li><a href="principal.php?pg=<? echo $sub[2];?>"><? echo $sub[1]; ?></a></li><?
                }?></ul><?
            }?></li><?
        }?></ul><?
        ?>
        </ul>
        
    </div>
    </th>
    <th width="825" valign="top" bgcolor="#fff">
        <?
        if(isset($_GET['pg'])){
            $pg = $_GET['pg'];
            if(file_exists($pg.'.php')){
                include $pg.'.php';
            }
            else {
                echo "<span class='titulo'>esta página no existe<p>&nbsp;</p> <p>&nbsp;</p>  <p>&nbsp;</p><p>&nbsp;</p> <p>&nbsp;</p>  <p>&nbsp;</p></span>";
            }
        }
        else{
	?> <p class="texto"><strong>...</strong></p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            
      <span class="text">
      <?php
	}
        ?>  
    </span>
<!--      <iframe name="visor" width="820" height="300px" src="inicio.php"  target="_self">
        Tu Navegador no está configurado para soportar estos frames
      </iframe>-->
    </th>
  </tr>
  <tr>
    <th height="60" colspan="2" valign="middle" background="../imagenes/bg-button-1.gif" class="texto">Servicios Profesionales en Tecnolog&iacute;a</br>Todos los derechos reservados 2013.</th>
  </tr>
</table>
</body>
</html>
